# Use the centos image as the base
FROM centos:centos7

# Set the working directory inside the container
WORKDIR /usr/local/alibabacloudkmsagent

# Copy the binary and config to the container
COPY alibabacloud-kms-agent .
COPY config.toml .

# Set the entry point to run the kms agent
ENTRYPOINT ["./alibabacloud-kms-agent", "agent", "./config.toml"]
